<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page import="org.springside.modules.security.springsecurity.SpringSecurityUtils" %>
<%@ include file="/common/taglibs.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>任务管理</title>
	<%@ include file="/common/meta.jsp"%>
	<link href="${ctx}/css/default.css" type="text/css" rel="stylesheet" />
	<script src="${ctx}/js/jquery.js" type="text/javascript"></script>
	<script  src="${ctx}/js/table.js" type="text/javascript"></script>
</head>

<body>
<%@ include file="/common/menu.jsp" %>

<div id="message"><s:actionmessage theme="mytheme"/></div>
<form id="mainForm" action="job.action" method="get">

<input type="hidden" name="page.pageNo" id="pageNo" value="${page.pageNo}"/>
<input type="hidden" name="page.orderBy" id="orderBy" value="${page.orderBy}"/>
<input type="hidden" name="page.order" id="order" value="${page.order}" />
<div id="listContent">
<table>
	<tr>
		<th><b>任务组名</b></th>
		<th><b>任务名</b></th>
		<th><b>任务描述</b></th>
		<th><b>创建者</b></th>
		<th><b>操作</b></th>
	</tr>

	<s:iterator value="page.result">
		<tr>
			<td>${group}&nbsp;</td>
			<td>${name}&nbsp;</td>
			<td>${description}&nbsp;</td>
			<td>${creator}&nbsp;</td>
			<td>&nbsp; 
					<a href="job!view.action?group=${group}&name=${name}">查看</a>、
					<a href="job!input.action?group=${group}&name=${name}">修改</a>、
					<a href="job!delete.action?group=${group}&name=${name}">删除</a>
					<a href="trigger!input.action?jobGroup=${group}&jobName=${name}">调度</a>
			</td>
		</tr>
	</s:iterator>
</table>
</div>

<div id="footer">
	第${page.pageNo}页, 共${page.totalPages}页 
	<a href="javascript:jumpPage(1)">首页</a>
	<s:if test="page.hasPre"><a href="javascript:jumpPage(${page.prePage})">上一页</a></s:if>
	<s:if test="page.hasNext"><a href="javascript:jumpPage(${page.nextPage})">下一页</a></s:if>
	<a href="javascript:jumpPage(${page.totalPages})">末页</a>
	

	
</div>
</form>
</body>
</html>
